<template lang="html">
 <div v-if="loggedin == '1'">
 	<sign-in></sign-in>
 </div>
 <div v-else>
 	<maininex></maininex>
 </div>
</template>
<script type="text/javascript">
import signin from "../Signin/Signin.vue";
import maininex from "./main.vue";
	export default{
		data(){
		    return {
		      masy:[],
		      loggedin:"1"
		    }
		},
		created:function(){
			var cur_id = sessionStorage.getItem("cur_id"),
			sign = sessionStorage.getItem("sign"),
			conent = this;
		    if (cur_id&&sign) {
				conent.loggedin = "2"
		    }
		},
		components: {
		   	'sign-in': signin,
		   	'maininex':maininex
		}
	}
</script>
<style scoped lang="less">
	.goods-list-link {
	    display: block;
	    padding: 0.5rem 0;
	    margin: 0 0.3rem;
	    text-align: center;
	    background-color: #fff;
	 }
</style>